package com.ys.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

/**
 * <p>@description:任务类</p>
 *
 * @projectName: spring-boot-schedule
 * @packageName: com.ys.schedule
 * @className:
 * @author: shuangyang
 * @date: 17-8-15 下午9:59
 */
@Configuration
@Component
@EnableScheduling
@Slf4j
public class ScheduleTask {
    public void sayHello(){
        log.info("Hello world, i'm the king of the world!!!");
        System.out.println("Hello world, i'm the king of the world!!!");
    }
}
